import java.util.Random;

public class Calc {
    public static void main(String[] args) {
        System.out.println(Math.abs(-999));//求绝对值；
        System.out.println(Math.max(99,9));//比较两个数的大小，输出大的值
        System.out.println(Math.min(99,9));//比大输出小
        //random随即类
        Random random = new Random();
        for (int i=0;i<5;i++){
            System.out.println(random.nextInt()+"l");
        }
        System.out.println();
        for (int i=0;i<5;i++){
            //随机生成1-100
            System.out.println(random.nextInt(100)+"l");
        }
        System.out.println();
        for (int i=0;i<5;i++){
            //随机生成10000-20000
            System.out.println(10000 + random.nextInt(20000-10000)+"l");
        }
    }
    }


